نشان دهنده مدت زمان حضور کاربر در سایت
<!--Powered <br>java code by WwW.IranGamer.Com--> <br></> <br><meta http-equiv="Content-Language" content="en-us"> <br><P align=left> <br><a target="_blank" href="http://WwW.IranGamer.Com" <br>style="text-decoration: none"> <br><span style="font-size: 9pt">Tarfandestan.com< <br>lang=Java> <br>day = new Date(); <br>miVisit = day.getTime(); <br>function clock() { <br>dayTwo = new Date(); <br>hrNow = dayTwo.getHours(); <br>mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); <br>miNow = dayTwo.getTime(); <br>if (hrNow == 0) { <br>hour = 12; <br>ap = " AM"; <br>} else if(hrNow <= 11) { <br>ap = " AM"; <br>hour = hrNow; <br>} else if(hrNow == 12) { <br>ap = " PM"; <br>hour = 12; <br>} else if (hrNow >= 13) { <br>hour = (hrNow - 12); <br>ap = " PM"; <br>} <br>if (hrNow >= 13) { <br>hour = hrNow - 12; <br>} <br>if (mnNow <= 9) { <br>min = "0" + mnNow; <br>} <br>else (min = mnNow) <br>if (scNow <= 9) { <br>secs = "0" + scNow; <br>} else { <br>secs = scNow; <br>} <br>time = hour + ":" + min + ":" + secs + ap; <br>document.form.button.value = time; <br>setTimeout("clock()", 1000); <br>} <br>function timeInfo() { <br>milliSince = miNow; <br>milliNow = miNow - miVisit; <br>secsVisit = Math.round(milliNow / 1000); <br>minsVisit = Math.round((milliNow / 1000) / 60); <br>alert(+ minsVisit + "; " <br>+ secsVisit + "Seconds , You Are In Tarfandestan.com "); <br>} document.write("<form name=\"form\">" <br>+ "<input type=button style="cursor=help" style="border=blue" <br>style="height=20" style="background=#ff0033" style="color=white" <br>value=\"Click for info!\"" <br>+ " name=button onClick=\"timeInfo()\"></form>"); <br>onError = null; <br>clock(); </></body></span></a>